package com.itheima.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.mapper.UserMapper;
import com.itheima.pojo.User;
import com.itheima.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO
 *
 * @Author lyh
 * @Date 2024/11/8 17:53
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    public void test(){
        List<User> list = this.lambdaQuery().le(User::getAge, 30).list();
        list.forEach(System.out::println);

        this.getBaseMapper().selectById(1);
    }

}
